package com.hctrl.mybatis.entity.resp;

import com.hctrl.mybatis.entity.CommentDO;
import com.hctrl.mybatis.entity.UserDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author hanchao
 * @version 1.0
 * @date 2022/5/19 20:45
 */

public class BlogResp2 implements Serializable {

    private Long id;

    private String title;

    private UserDO userDO;

    private LocalDateTime operaTime;

    private List<CommentDO> commentDOS;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public UserDO getUserDO() {
        return userDO;
    }

    public void setUserDO(UserDO userDO) {
        this.userDO = userDO;
    }

    public List<CommentDO> getCommentDOS() {
        return commentDOS;
    }

    public void setCommentDOS(List<CommentDO> commentDOS) {
        this.commentDOS = commentDOS;
    }

    public LocalDateTime getOperaTime() {
        return operaTime;
    }

    public void setOperaTime(LocalDateTime operaTime) {
        this.operaTime = operaTime;
    }

    @Override
    public String toString() {
        return "BlogResp2{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", userDO=" + userDO +
                ", operaTime=" + operaTime +
                ", commentDOS=" + commentDOS +
                '}';
    }
}
